using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;


namespace Timetable.Base.Entities
{
    [DataContract(IsReference = true)]
    public class Speciality: BaseEntity
    {
        [DataMember]
        public string Name { get; set; }
        [DataMember]
	    public string ShortName { get; set; }
        [DataMember]
	    public string Code { get; set; }

	    public Department Department { get; set; }

        public virtual ICollection<ScheduleInfo> ScheduleInfoes { get; set; }

        public virtual ICollection<Group> Groups { get; set; }

        public Speciality()
        {
            ScheduleInfoes = new HashSet<ScheduleInfo>();
        }
    }
}
